#-------------------------------------------------
#
# Project created by QtCreator 2011-09-09T10:41:04
#
#-------------------------------------------------

QT += core gui
CONFIG += mobility
MOBILITY += systeminfo

TARGET = dfilebrowser
TEMPLATE = app


SOURCES += main.cpp \
    DfBrowser/filebrowser.cpp \
    DfBrowser/contextmenu.cpp \
    DfBrowser/browserbuttons.cpp \
    DfBrowser/extras/overlayer.cpp \
    DfBrowser/extras/listviewdelegate.cpp \
    DfBrowser/extras/orientation.cpp \
    DfBrowser/ddeviceinformation.cpp \
    DfBrowser/dbrowser.cpp

HEADERS  += \
    DfBrowser/filebrowser.h \
    DfBrowser/contextmenu.h \
    DfBrowser/browserbuttons.h \
    DfBrowser/extras/overlayer.h \
    DfBrowser/extras/listviewdelegate.h \
    DfBrowser/extras/orientation.h \
    DfBrowser/ddeviceinformation.h \
    DfBrowser/dbrowser.h

FORMS    +=

RESOURCES += \
    DfBrowser/dbstyles.qrc \
    DfBrowser/icons/back.qrc

OTHER_FILES += \
    qtc_packaging/debian_harmattan/rules \
    qtc_packaging/debian_harmattan/README \
    qtc_packaging/debian_harmattan/copyright \
    qtc_packaging/debian_harmattan/control \
    qtc_packaging/debian_harmattan/compat \
    qtc_packaging/debian_harmattan/changelog \
    DfBrowser/style/touchable.qss \
    DfBrowser/style/style.qss \
    DfBrowser/style/touchable_qmessagebox.qss \
    qml/BrowserWindow.qml

unix:!symbian:!maemo5 {
    target.path = /opt/dfilebrowser/bin
    INSTALLS += target
}

INSTALLS += DfBrowser/style

contains(MEEGO_EDITION,harmattan) {
    icon64.files = dfilebrowser.png
    icon64.path = /usr/share/icons/hicolor/64x64/apps/
    INSTALLS += icon64
}

contains(MEEGO_EDITION,harmattan) {
    desktopfile.files = $${TARGET}.desktop
    desktopfile.path = /usr/share/applications
    INSTALLS += desktopfile
}
